<?php

namespace app\http\middleware;

class AdminLog{
    public function handle($request, \Closure $next)
    {
        if (request()->isPost())
        {
            \app\admin\model\AdminLog::record();
        }
        return $next($request);
    }
}